<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property int $uid 
 * @property int $main_uid 
 * @property int $scheme_id 方案ID
 * @property int $robot_id 企微号ID
 * @property string $to_id 目标微信ID
 * @property int $type 类型:0=自动推送 1=智能推送
 * @property int $trigger_time 触发时间
 * @property int $start_time 发送开始时间
 * @property int $end_time 发送结束时间
 * @property int $msg_total_count 消息总数量
 * @property int $msg_sent_count 消息发送数量
 * @property int $status 发送状态：0=待发送 1=发送中 2=发送完成 3=发送失败
 * @property array $content 发送内容
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class ChSmartSendRecord extends MineModel
{
    public bool $incrementing = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_smart_send_record';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'scheme_id', 'robot_id', 'to_id', 'type', 'trigger_time', 'start_time', 'end_time', 'msg_total_count', 'msg_sent_count', 'status', 'content', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'scheme_id' => 'integer', 'robot_id' => 'integer', 'type' => 'integer', 'trigger_time' => 'integer', 'start_time' => 'integer', 'end_time' => 'integer', 'msg_total_count' => 'integer', 'msg_sent_count' => 'integer', 'status' => 'integer', 'content' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
